package com.tbit.uqbike.service.business;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tbit.common.entity.view.PageResult;
import com.tbit.uqbike.object.pojo.DepositApply;

import java.util.Date;
import java.util.List;

/**
 * 押金退还申请
 * @description:
 * @author: chen
 * @date: 2024-01-09 11:26
 **/
public interface DepositApplyService extends IService<DepositApply> {

    PageResult<DepositApply> queryPage(Integer accountId,String phone,Long startTime,Long endTime,String handelPhone,Integer state
    ,Integer page, Integer size);

    /**
     * 更改押金状态
     * @param applyId 申请id
     * @param state 状态
     * @param refundNO 退款单号
     * @param handleUserId 操作用户id
     * @param handelPhone 操作用户手机号码
     */
    void editState(Integer applyId,Integer state,String refundNO,Integer handleUserId,String handelPhone,String handelName);

    /**
     * 根据用户id和品牌id查询
     *
     * @param userId    用户id
     * @param brandId   品牌id
     * @param startTime 开始时间
     * @param endTime   结束时间
     */
    List<DepositApply> selectList(Integer userId, Integer brandId, Date startTime, Date endTime);
}
